package com.quan.mall.service;

import com.quan.mall.commons.vo.PmsBrandVo;
import com.quan.mall.commons.vo.PmsCategoryBrandRelationVo;
import com.quan.mall.entity.PmsCategoryBrandRelation;
import com.quan.commons.core.utils.PageUtils;
import com.quan.commons.core.biz.support.MyBaseService;

import java.util.List;

/**
 * 商品-品牌分类关联
 *
 * @author yhaoquan
 * @email yhaoquan@163.com
 * @date 2021-02-09 11:44:02
 */
public interface PmsCategoryBrandRelationService extends MyBaseService<PmsCategoryBrandRelation> {

    /**
     * 列表查询
     * @param vo
     * @return
     */
    public List<PmsCategoryBrandRelationVo> queryList(PageUtils pageUtils, PmsCategoryBrandRelationVo vo) ;

    /**
     * 分页查询
     * @param pageUtils
     * @param vo
     * @return
     */
    public PageUtils queryPage(PageUtils pageUtils, PmsCategoryBrandRelationVo vo);

    /**
     * 保存详细信息
     * @param entity
     */
    void saveDetail(PmsCategoryBrandRelation entity);

    void updateBrand(Long brandId, String name);

    void updateCategory(Long cateId, String name);

    List<PmsBrandVo> getBrandsByCatId(Long cateId);
}

